package com.ruoyi.test_tree.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.test_tree.mapper.PlaceLocationMapper;
import com.ruoyi.test_tree.domain.PlaceLocation;
import com.ruoyi.test_tree.service.IPlaceLocationService;

/**
 * 放置位置表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-12
 */
@Service
public class PlaceLocationServiceImpl implements IPlaceLocationService 
{
    @Autowired
    private PlaceLocationMapper placeLocationMapper;

    /**
     * 查询放置位置表
     * 
     * @param locationId 放置位置表主键
     * @return 放置位置表
     */
    @Override
    public PlaceLocation selectPlaceLocationByLocationId(Long locationId)
    {
        return placeLocationMapper.selectPlaceLocationByLocationId(locationId);
    }

    /**
     * 查询放置位置表列表
     * 
     * @param placeLocation 放置位置表
     * @return 放置位置表
     */
    @Override
    public List<PlaceLocation> selectPlaceLocationList(PlaceLocation placeLocation)
    {
        return placeLocationMapper.selectPlaceLocationList(placeLocation);
    }

    /**
     * 新增放置位置表
     * 
     * @param placeLocation 放置位置表
     * @return 结果
     */
    @Override
    public int insertPlaceLocation(PlaceLocation placeLocation)
    {
        return placeLocationMapper.insertPlaceLocation(placeLocation);
    }

    /**
     * 修改放置位置表
     * 
     * @param placeLocation 放置位置表
     * @return 结果
     */
    @Override
    public int updatePlaceLocation(PlaceLocation placeLocation)
    {
        return placeLocationMapper.updatePlaceLocation(placeLocation);
    }

    /**
     * 批量删除放置位置表
     * 
     * @param locationIds 需要删除的放置位置表主键
     * @return 结果
     */
    @Override
    public int deletePlaceLocationByLocationIds(Long[] locationIds)
    {
        return placeLocationMapper.deletePlaceLocationByLocationIds(locationIds);
    }

    /**
     * 删除放置位置表信息
     * 
     * @param locationId 放置位置表主键
     * @return 结果
     */
    @Override
    public int deletePlaceLocationByLocationId(Long locationId)
    {
        return placeLocationMapper.deletePlaceLocationByLocationId(locationId);
    }
}
